package com.leyou.common.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> {
    //当前页数据
    private List<T> items;
    //总记录数
    private Long total;
    //总页数
    private Integer totalPage;

    public PageResult(List<T> items, Long total) {
        this.items = items;
        this.total = total;
    }
}
